03. Update Order Summary
Update Order Summary
Question:
Start Quiz:
Solution:
INSTRUCTOR NOTE:
End Goal
Here's some more detailed info for each step:
When the button is clicked, find the CheckBox view, get checked state from the CheckBox, and store the checked state value in a new boolean variable. Feel free to add a log message to verify that step 1 is completed correctly.
Pass the checked state boolean into the createOrderSummary() method, so it takes in 2 input parameters. The new input parameter is a boolean called
hasWhippedCream
. Remember to modify the method signature of the method. Here's a link to the video discussion adding and removing parameters.Modify the
createOrderSummary()
method so it displays this text on screen using the boolean input parameter.Remove log messages that were added for debugging purposes.